package com.hong.service;


import com.hong.qrpc.annotation.Service;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * @Author HQT
 * @Date 2022/7/10 20:31
 */
@Service
public class CalcServiceImpl implements CalcService {
    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public Map getMixedMap() {
        Map map = new HashMap();
        map.put("key", "value");
        map.put("sb", new StringBuilder());
        map.put(456, "asdas");
        Set<String> strings = new HashSet<>();
        strings.add("asdasfasivhsjkvnakcnasionckalsjhi中国上岛咖啡金阿奎路径分啥的发放卡机了首付款垃圾分开了ajs");
        map.put("set", strings);
        return map;
    }

    @Override
    public int minus(int a, int b) {
        return a - b;
    }
}
